package com.itheima.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * tomcat 有 DefaultServlet 处理静态资源的
 * / 默认覆盖DefaultServlet  静态资源默认都不能访问
 *
 * /* 高于后缀名的路径匹配  静态资源默认都不能访问
 */
//@WebServlet("/*")
public class AllServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("AllServlet... /* ");
    }
}
